const courseRoutes = [
  {
    path: 'course',
    name: 'course',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'enrollment',
        name: 'enrollment',
        children: [
          {
            path: 'selection',
            name: 'selection',
            component: () => import('@/views/Course/CourseChoice.vue')
          },
          {
            path: 'result',
            name: 'result',
            component: () => import('@/views/Course/CourseResult.vue')
          }
        ]
      },
      {
        path: 'schedule',
        name: 'schedule',
        children: [
          {
            path: 'theory',
            name: 'theory',
            component: () => import('@/views/Course/CourseSchedule.vue')
          },
          {
            path: 'teaching-schedule',
            name: 'teaching-schedule',
            component: () => import('@/views/Course/TeacherSchedule.vue')
          }
        ]
      },
      {
        path: 'score',
        name: 'score',
        children: [
          {
            path: 'inquiry',
            name: 'inquiry',
            component: () => import('@/views/Course/CourseScore.vue')
          },
          {
            path: 'registeration',
            name: 'registeration',
            component: () => import('@/views/Course/ScoreRegisteration.vue')
          }
        ]
      },
      {
        path: 'self-course',
        name: 'self-course',
        children: [
          {
            path: 'teaching-course',
            name: 'teaching-course',
            component: () => import('@/views/Course/TeacherCourse.vue')
          },
          {
            path: 'release',
            name: 'release',
            component: () => import('@/views/Course/CourseRelease.vue')
          }
        ]
      },
      {
        path: 'config',
        name: 'config',
        children: [
          {
            path: 'detail',
            name: 'course-detail',
            component: () => import('@/views/Course/CourseDetail.vue')
          }
        ]
      }
    ]
  }
]
export default courseRoutes
